﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>

    <script src="../Scripts/J.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
    function extend(destination, source) {
        for (var property in source) {
            destination[property] = source[property];
        }
    }
    var Class = function() {
        var _class = function() {
            extend(this, _class);
            return this.initialize.apply(this, arguments);
        };
        for (i = 0; i < arguments.length; i++) {
            superClass = arguments[i];
            extend(_class.prototype, superClass.prototype);
        }
        extend(_class, {
            initialize: function(options) {
                this.SetOption(options);
            },
            extend: function(f) {
                extend(this, f);
                return this;
            },
            option: {},
            SetOption: function(options) {
                this.option = {};
                extend(this.option, _class.option);
                extend(this.option, options || {});
            }
        });
        return _class;
    };
    var t = new j.Class().extend({ option: { r: "t"} });
    var a = new t({ r: "r" });
    var b = new t({ r: "e" });
    var c = new t({ q: "t" });
    debugger;
</script>
</body>
</html>
